package demo;

import java.io.File;
import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description: 查找当前文件下所有目录名
 * Author:  LiuTao
 * Version: 1.0
 * Date:    2024-03-26  14:54
 */
public class IODemo4 {
    public static void main(String[] args) {
        File file = new File(".");
        String[] str = file.list();
        System.out.println(Arrays.toString(str));
    }
}
